package com.aaa.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @ClassName: ConstantVodUtils
 * @Description: TODO
 * @Author: 86139
 * @Date: 2021/9/14 21:14
 * @Version:1.0
 **/

@Component
public class ConstantVodUtils implements InitializingBean {
    @Value("${keyid}")
    private String keyid;

    @Value("${keysecrect}")
    private String keysecret;

    public static String ACCESS_KEY_SECRET;
    public static String ACCESS_KEY_ID;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID = keyid;
        ACCESS_KEY_SECRET = keysecret;
    }
}
